class Professor < ActiveRecord::Base
  
  has_many :giveslectures
  has_many :lectures, :through => :giveslectures
  
  
  def name
    "#{self.first_name} #{self.last_name}"
  end
  
end
